package co.com.test;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;

import co.com.test.controller.LibraryControllerTestCase;
import junit.framework.Test;
import junit.framework.TestSuite;


public class JTuneTestSuite extends TestSuite{
	
	public static Preferences perference;
	
	
	public static Test suite()
	{
		//Setup inicial y transversal para todos los test
		initEnvironment();
		TestSuite testSuite = new TestSuite();
		testSuite.addTestSuite(LibraryControllerTestCase.class);
		return testSuite;
	}

	/**
	 * 
	 */
	private static void initEnvironment() {
		try {
			perference = Preferences.userRoot().node(JTuneTestSuite.class.getName());
			perference.clear();
		} catch (BackingStoreException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
